@extends('layout.home')

@section('title','个人帖子列表')

@section('content')
<div class="row">
    <div class="aw-content-wrap clearfix">
        <div class="col-md-8 col-md-offset-2 aw-main-content">
            <div class="ad-all clearfix">
                <div id="carousel-example" class="carousel slide" data-ride="carousel">
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-example" data-slide-to="0" class="">
                        </li>
                        <li data-target="#carousel-example" data-slide-to="1" class="">
                        </li>
                        <li data-target="#carousel-example" data-slide-to="2" class="active">
                        </li>
                    </ol>
                    <div class="carousel-inner">
                        <div class="item">
                            <a href="/" target="_blank">
                                <img alt="" src="/homes/ad/pc/1.jpg">
                            </a>
                        </div>
                        <div class="item">
                            <a href="/" target="_blank">
                                <img alt="" src="/homes/ad/pc/2.jpg">
                            </a>
                        </div>
                        <div class="item active">
                            <a href="/" target="_blank">
                                <img alt="" src="/homes/ad/pc/3.jpg">
                            </a>
                        </div>
                    </div>
                    <a class="left carousel-control" href="#carousel-example" data-slide="prev">
                        <span class="glyphicon glyphicon-chevron-left" style="font-size:14px;">
                        </span>
                    </a>
                    <a class="right carousel-control" href="#carousel-example" data-slide="next">
                        <span class="glyphicon glyphicon-chevron-right" style="font-size:14px;">
                        </span>
                    </a>
                </div>
            </div>
            <!-- 问题列表 -->
            <ul class="nav nav-tabs aw-nav-tabs active hidden-xs">
				<h2 class="hidden-xs"><i class="icon icon-list"></i>历史记录</h2>
			</ul>
        @foreach($data as $k=>$v)
            <div class="aw-mod aw-explore-list">
                <div class="mod-body">
                    <div class="aw-common-list">
                        <div class="aw-mod aw-explore-list">
                            <div class="mod-body">
                                <div class="aw-common-list">
                                    <div class="aw-item" id="aw-item_0">
                                        <div class="aw-user-imgs">
                                            <p>
                                                {{session('username')}}
                                            </p>
                                            <div class="userline hidden-xs" id="userline_0">
                                            	{{session('profile')}}
                                            </div>
                                        </div>
                                        <div class="aw-question-content" id="aw-question-content_0">
                                            <h4>
                                                <a href="/reply/qdetail?id=4">
                                                  	{{$v->title}}
                                                </a>
                                            </h4>
                                            <div class="inner clearfix">
                                                <div class="inner clearfix question-text" style="color: #666; font-size:13px;">
                                                    {{$v->content}}
                                                </div>

                                                <div class="inner clearfix">
                                                    <div class="dropdown" style="margin-top:12px;">
										                所属分类: <select name="pid" style="
														-moz-appearance:none;background:white
														" disabled>
										                    @foreach($res as $a=>$b)	
										                    <option value="{{$b->id}}" @if($v->pid == $b->id) selected @endif> {{$b->sname}}</option> 
										                    @endforeach
										                </select>
										            </div>
                                                    <div class="pull-right">
                                                        <a href="http://localhost/2qi/1119/yrjsqwz_v2.0/?/question/3#!answer_form"
                                                        class="pull-right aw-icon-thank-tips text-color-999" data-original-title="回复"
                                                        data-toggle="tooltip" title="" data-placement="bottom">
                                                           {{$v->time}}
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                     </div>   
        		
				</div>
			</div>
		@endforeach
@endsection